package com.lmm.yydshtester.constants;

import java.text.DecimalFormat;
import java.text.SimpleDateFormat;

/**
 * @title: ServerConstants
 * @Description: 常量类
 * @Author Lmm
 * @Date: 2022/11/10 17:12
 * @Version 1.0
 */
public class ServerConstants {
    /**
     * master节点
     * */
    //工作节点的父路径：工作实例路径
    public static final String MANAGE_PATH = "/dhp/worker";
    //工作节点的路径前缀
    public static final String PATH_WORKER_PREFIX = MANAGE_PATH + "/node-";


    /**
     * 任务节点 worker
     * */
    public static final String TASK_PATH = "/dhp/task";
    public static final String PATH_TASK_INST = TASK_PATH + "/run-";
    public static final String EMPTY = "empty";
    public static final String SNOW_FLAKE_ID = "_SNOW_FLAKE_ID_";


    public static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    public static final DecimalFormat DF = new DecimalFormat("0.00");
}
